package HomeWork01;

public class Test03 {
    public static void main(String[] args) {
            Chinese a=new Chinese();
            American b=new American();
            Indian c=new Indian();
            a.eat();
            b.eat();
            c.eat();
    }
}
abstract class Person1{
    public abstract void eat();
}
class Chinese extends Person1{
    @Override
    public void eat() {
        System.out.println("用筷子吃饭");
    }
}
class American extends Person1{
    @Override
    public void eat() {
        System.out.println("用刀叉吃饭");
    }
}
class Indian extends Person1{
    @Override
    public void eat() {
        System.out.println("用手吃饭");
    }
}
